<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

        <title>我的帖子|<?php echo webconfig('WEB_SITE_TITLE'); ?> - Powered by EasySNS!</title>
  
  
  <meta name="keywords" content="<?php echo webconfig('WEB_SITE_KEYWORD'); ?>">
  <meta name="description" content="<?php echo webconfig('WEB_SITE_DESCRIPTION'); ?>">
      
<link rel="shortcut icon" href="__PUBLIC__/images/favicon.ico">
  <link rel="stylesheet" type="text/css" href="__CSS__/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
 
  <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/jianyue.css" />


    

		<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>

			<script type="text/javascript" src="__PUBLIC__/js/compatibility.js"></script>
		<!--[if lt IE 9]>
		<script type="text/javascript" src="__PUBLIC__/js/html5shiv.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/respond.min.js"></script>
		<![endif]-->
</head>
<body>

<script type="text/javascript">
var G_POST_HASH="<?php echo session_id(); ?>";
	var G_BASE_URL = "<?php echo webconfig('web_url'); ?>";
	var G_USER_ID = "<?php echo $nowuid; ?>";
	var G_USER_NAME = "<?php echo $userinfo['nickname']; ?>";
	</script>
<div class="aw-top-menu-wrap">

    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href="<?php echo es_url('Index/index'); ?>" id="logo">
                <img src="__PUBLIC_IMG__/logoblack.png"/>
            </a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box ">
            <form class="navbar-search" action="<?php echo es_url('search/index'); ?>" id="global_search_form" method="post">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="q"
                       id="aw-search-query">
                <span title="搜索" id="global_search_btns" onclick="$('#global_search_form').submit();"><i
                        class="iconfont icon-chazhao"></i></span>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list hide"></ul>
                        <p class="search"><span>搜索:</span><a onclick="$('#global_search_form').submit();"></a></p>
                    </div>

                </div>
            </form>
            <a href="javascript:search(0);" class="search-close">关闭</a>
        </div>
        <script type="text/javascript">
            function search(s) {

                if (s == 1) {
                    var height = $('.aw-top-nav').height() - 16;

                    $('#xiaosou').fadeOut();

                    $('.headnav').find('.hidden-xs').hide();

                    $('.aw-search-box').show().animate({top: height}, 300);
                } else {
                    $('#xiaosou').fadeIn();
                    $('.headnav').find('.hidden-xs').show();
                    $('.aw-search-box').stop().fadeOut();
                }
            }
        </script>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">

                    <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <?php if($vo['pid'] == '1'): ?>
                    <li>
                        <a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" target="<?php echo $vo['target']; ?>" title="<?php echo $vo['alias']; ?>" <?php if(true == getnavactive(getnavlink($vo['link'],$vo['sid']))): ?>class="active" <?php endif; ?>><i
                            class="iconfont icon-<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a>
                    </li>
                    <?php endif; ?>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    <?php if(session('member_info')): ?>
                    <li>
                        <a href="<?php echo es_url('user/mess'); ?>" class=""><i class="iconfont icon-remind1"></i> 通知</a>
                        <?php if($messcount > 0): ?>
                        <span class="badge badge-important" id="notifications_unread"><?php echo $messcount; ?></span>
                        <?php endif; ?>
                        <div class="aw-dropdown pull-right hidden-xs">
                            <div class="mod-body">
                                <ul id="header_notification_list">

                                    <?php if($messlist): ?>

                                    <?php if(is_array($messlist)): $i = 0; $__LIST__ = $messlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <li>
                                        <h3 class="title">
                                            <i class="iconfont icon-remind"></i> <?php echo $vo['messname']; ?>&nbsp;&nbsp;<span
                                                class="time"><?php echo friendlyDate($vo['update_time']); ?></span>


                                        </h3>

                                        <p class="msg-body"><?php echo $vo['content']; ?>
                                        </p>

                                    </li>

                                    <?php endforeach; endif; else: echo "" ;endif; ?>


                                    <?php else: ?>

                                    <p class="aw-padding10" align="center">没有未读通知</p>
                                    <?php endif; ?>


                                </ul>
                            </div>
                            <div class="mod-footer">
                                <a href="<?php echo es_url('user/mess'); ?>">查看全部</a>
                            </div>
                        </div>
                    </li>
                    <?php endif; ?>


                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->

        <?php if(session('member_info')): ?>
        <div class="aw-user-nav">

            <a href="javascript:;" class="aw-user-nav-dropdown">
                <img alt="<?php echo $userinfo['nickname']; ?>" src="<?php echo getheadurl($userinfo['userhead']); ?>">

            </a>
            <div class="aw-dropdown dropdown-list pull-right">
                <ul class="aw-dropdown-list">
                    <?php if($userinfo['is_inside'] == 1): ?>
                    <li class=""><a href="<?php echo webconfig('web_url'); ?>admin.php" target="_blank"> 管理后台</a></li>
                    <?php endif; ?>
                    <li class=""><a href="<?php echo es_url('user/home',array('id'=>$userinfo['id'])); ?>"><i
                            class="iconfont icon-fenlei"></i> 主页</a></li>
                    <li class=""><a href="<?php echo es_url('user/mess'); ?>"><i class="iconfont icon-remind"></i> 消息</a></li>
                    <li class=""><a href="<?php echo es_url('user/mytopic'); ?>"><i class="iconfont icon-pinglun"></i> 我的帖子</a></li>

                    <li><a href="<?php echo es_url('user/index'); ?>"><i class="iconfont icon-shezhi"></i> 设置</a></li>
                    <li><a href="javascript:;" data-url="<?php echo es_url('user/logout'); ?>" class="logoutajax" target="_blank"><i
                            class="iconfont icon-close"></i> 退出</a></li>
                </ul>
            </div>

        </div>
        <div class="aw-publish-btn">
            <a id="header_publish" href="<?php echo es_url('topic/topicadd'); ?>" class="btn-primary">
                <i class="iconfont icon-fabu2"></i>发布</a>

        </div>
        <?php else: ?>
        <div class="aw-user-nav">

            <a class="btn-primary btnst " href="<?php echo es_url('user/login'); ?>">登录</a>
            <span class="or">or</span>
            <a class="register btn-success btnst" href="<?php echo es_url('user/register'); ?>">注册</a>
            <!-- end 登陆&注册栏 -->
        </div>


        <?php endif; ?>


    </div>
    <div class="headnav" id="fudao" style="">
        <div class="container">

            <ul class="">

                <?php if(is_array($topiccatelist)): $i = 0;$__LIST__ = is_array($topiccatelist) ? array_slice($topiccatelist,0,10, true) : $topiccatelist->slice(0,10, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li class="xs <?php if($cateinfo['id'] == $vo['id']): ?>active<?php endif; ?>">
                <a href="<?php echo es_url('topic/cindex',array('id'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="pull-right" id="xiaosou"><a href="javascript:search(1);" class="search"><i
                        class="icon icon-search"></i>&nbsp;搜索</a></li>


            </ul>
        </div>
    </div>

</div>

  
  <link rel="stylesheet" type="text/css" href="__CSS__/user.css" />
    <div class="aw-container-wrap">
  <div class="container es-margin-b-20  es-margin-t-20">
  <div class="site-tree-mobile hide"><i class="iconfont icon-you"></i></div>
<div class="ucenter-left">
<div class="userinfo">
    <div class="media">
      <div class="media-left">
          <span>
    <img class="avatar-md middleimg" src="<?php echo getheadurl($nowuserinfo['userhead']); ?>" alt="<?php echo $nowuserinfo['nickname']; ?>">
           
            
          </span>
  
      </div>
      <div class="media-body">
        <div class="title">
              <span class="link-light ellipsis" ><?php echo $nowuserinfo['nickname']; ?></span>
             <?php if($nowuserinfo['hasrz'] == 1): ?> <span class="iconfont <?php echo $nowuserinfo['icon']; ?>"  title="<?php echo $nowuserinfo['type']; ?>"></span><?php endif; ?>
        </div>
         <?php if($nowuserinfo['hasrz'] == 1): ?>
         <span><?php if($nowuserinfo['hasrz'] != 1): ?>

<?php if($nowuserinfo['description'] != null): ?>
<?php echo $nowuserinfo['description']; ?>
<?php else: ?>
这个家伙很懒，什么都没有留下！
<?php endif; ?>

<?php else: ?>

<?php echo $nowuserinfo['statusdes']; ?>

<?php endif; ?></span>
         <?php else: ?>
         <span><?php echo getusergrade($nowuserinfo['grades'],$nowuserinfo['id']); ?></span>
         <?php endif; ?>
      
      </div>
    </div>
</div>


<div class=" user-level">


</div>

<div class="mydoc-list" id="usercentermenu">
<ul>

<li <?php if($actionname == 'user/userfocus'): ?>class="current"<?php endif; ?> ><a href="<?php echo es_url('user/userfocus'); ?>"><i class="iconfont icon-zhuanjialiebiaohaoyouguanxianniu"></i> 好友关系</a></li>
<li <?php if($actionname == 'user/mytopic'): ?>class="current"<?php endif; ?>><a href="<?php echo es_url('user/mytopic'); ?>" ><i class="iconfont icon-pinglun"></i> 我的帖子</a></li>
<li <?php if($actionname == 'user/mess'): ?>class="current"<?php endif; ?>><a href="<?php echo es_url('user/mess'); ?>"><i class="iconfont icon-remind"></i> 我的消息</a></li>
</ul>
</div>
</div>
<script>
$(function(){
	var obj;
	
	$('#usercentermenu li').hover(function(){
		
		obj=$('#usercentermenu li.current');
		
		$(obj).removeClass('current');
		$(this).addClass('current');
		
	},function(){
		
		$(obj).addClass('current').siblings().removeClass('current');
		
	});
	var close=0;
	$('.site-tree-mobile').click(function(){
		var top=$('.aw-top-menu-wrap').offset().top+$('.aw-top-menu-wrap').height();
		if(close==1){
			$(this).find('.iconfont').removeClass('icon-zuo').addClass('icon-you');
			
			$('.ucenter-left').animate({ 
			    left: '-300px',
			
			  }, 500 );
			close=0;
		}else{
			$(this).find('.iconfont').addClass('icon-zuo').removeClass('icon-you');
			$('.ucenter-left').css('top',top);
			$('.ucenter-left').animate({ 
				    left: '0px',
				   
				  }, 500 );

			close=1;
		}
		
		
		
	});
	
});

</script>
<div class="ucenter-right">

<div class="my-contribution fixed-box" style="padding-top: 0px; " id="shoucangname">
<div class="console-box">
<span class="num-tip">共计&nbsp;<?php echo $totalcount; ?>篇帖子</span>

<a href="#shoucangname" class="current">我的帖子</a>

</div>


<?php if($totalcount > 0): ?>
<div class="boxcontent">

       <div class="users_content clearfix">
<ul class="es-topic-list ">

<?php if(is_array($topiclist)): $i = 0; $__LIST__ = $topiclist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li >


<div class="es-list-row">
<div class="es-list-title ">



<?php if($vo['settop'] == 1): ?>
<span class="label label-danger es-margin-r-5">置顶</span>
<?php endif; ?>
<a href="<?php echo es_url('topic/gview',array('id'=>$vo['id'])); ?>"><?php echo $vo['title']; ?></a>
<?php if($vo['choice'] == 1): ?>
<span class="label label-warning es-margin-l-5">精</span>
<?php endif; ?>


</div>
<div class="es-list-info">发布时间:<?php echo friendlyDate($vo['create_time']); ?>&nbsp;&nbsp;<a href="<?php echo es_url('topic/topicedit',array('id'=>$vo['id'])); ?>">[编辑帖子]</a>
&nbsp;&nbsp;<a href="<?php echo es_url('topic/mytopicdele',array('id'=>$vo['id'])); ?>">[删除]</a>
</div>
<div  class="es-list-info"></div>
</div>
<div class="pull-right rightinfo">
<span><i class="iconfont icon-pinglun1"></i> <?php echo $vo['reply']; ?></span>
<span><i class="iconfont icon-liulan"></i> <?php echo $vo['view']; ?></span>
</div>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>

                   </div>
                    <div class="pages">
						<ul class="pagination">
							<?php echo $page; ?>
						</ul>
					</div>
</div>
<?php else: ?>

<div class="empty-tip-box">
<div class="inner-box">

<div class="info">
<p class="iconfont icon-wujilu"></p>
<p class="first">还未找到任何数据</p>
<p class="second">快去加入感兴趣的小组与小伙伴互动起来吧~</p>
</div>
</div>
</div>
<?php endif; ?>



</div>
</div></div></div>
    
<div class="aw-footer-wrap">
	<div class="aw-footer">
		<div class="container">
			<div class="row">
				<div class="col-sm-2">
					<h4>站内导航</h4>
					<ul class="list-unstyled">
						   <?php if(is_array($footnav)): $i = 0; $__LIST__ = $footnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

    
<li><a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" title="<?php echo $vo['alias']; ?>" target="<?php echo $vo['target']; ?>"><i class="iconfont icon-<?php echo $vo['icon']; ?>" ></i> <?php echo $vo['name']; ?></a></li>

    <?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>联系合作</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>关注我们</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>友情链接</h4>
					<ul class="list-unstyled">
						
						<?php echo hook('friendLink'); ?> 
					</ul>
				</div>
	 			<div class="col-sm-4">
					<h4>内容许可</h4>
					
				</div>
			</div>
		</div>
		
		<p class="es-margin-t-20">Copyright © 2017 <a href="http://es.imzaker.com">EasySNS内容建站系统</a> 版权所有 <?php echo webconfig('WEB_SITE_TITLE'); ?> <?php echo webconfig('WEB_SITE_ICP'); ?></p>
<p><?php echo html_entity_decode(webconfig('WEB_SITE_FOOTER')); ?></p>
		
	</div>
</div>



<div id="aw-ajax-box" class="aw-ajax-box hidden-xs">
</div>
<a href="javascript:;" id="gotoTop" class="show hidden-xs" style="right: 71.5px;"><i></i></a>







<!--页面JS脚本-->


			<script type="text/javascript" src="__JS__/aws.js"></script>
			<script type="text/javascript" src="__JS__/aw_template.js"></script>
				<script type="text/javascript" src="__JS__/app.js"></script>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.easing.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>


</body>
</html>